# 地区时间格式转换器
def time_format_converter():
    # 定义各地区时间格式
    formats = {
        "中国": "{0}年{1}月{2}日 {3:02d}:{4:02d}:{5:02d}",
        "美国": "{1:02d}/{2:02d}/{0} {3:02d}:{4:02d}:{5:02d}",
        "英国": "{2:02d}/{1:02d}/{0} {3:02d}:{4:02d}:{5:02d}",
        "德国": "{2:02d}.{1:02d}.{0} {3:02d}:{4:02d}:{5:02d}",
        "俄罗斯": "{2:02d}.{1:02d}.{0} {3:02d}:{4:02d}:{5:02d}",
        "澳大利亚": "{2:02d}/{1:02d}/{0} {3:02d}:{4:02d}:{5:02d}",
        "法国": "{2:02d}/{1:02d}/{0} {3:02d}:{4:02d}:{5:02d}",
        "加拿大": "{0}-{1:02d}-{2:02d} {3:02d}:{4:02d}:{5:02d}"
    }

    # 输入时间信息
    year = int(input("请输入年: "))
    month = int(input("请输入月: "))
    day = int(input("请输入日: "))
    hour = int(input("请输入时: "))
    minute = int(input("请输入分: "))
    second = int(input("请输入秒: "))

    # 选择地区
    regions = list(formats.keys())
    print("请选择地区:")
    for i, region in enumerate(regions):
        print(f"{i+1}. {region}")
    choice = int(input("输入序号: "))
    selected_region = regions[choice-1]

    # 转换并输出时间格式
    time_format = formats[selected_region]
    result = time_format.format(year, month, day, hour, minute, second)
    print(f"{selected_region}时间格式: {result}")

# 调用函数
time_format_converter()